package test23;

import lab02.test16.Calculator;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Scanner;

/**
 * Created by tianxiadiyishuai on 2017/11/2.
 */
public class Test02 {
    public static void main(String[] args) throws ParseException {

        Scanner scanner = new Scanner(System.in);
        String birthday;
        birthday = scanner.nextLine();
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-mm-dd");
        Calendar calendar=Calendar.getInstance();
        long time1=0;
        long time2=0;
        calendar.setTime(simpleDateFormat.parse(birthday));
        time1=calendar.getTimeInMillis();
        calendar.setTime(simpleDateFormat.parse("2018-10-8"));
        time2=calendar.getTimeInMillis();
        System.out.println("相差天数："+(time1-time2)/24*60*60*1000);
    }
}
